// --------------------------------------------------------------------------------------------
// Version: MPL 1.1/GPL 2.0/LGPL 2.1
// 
// The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/
// 
// Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
// for the specific language governing rights and limitations under the
// License.
// 
// <remarks>
// Generated by IDLImporter from file nsIDNSListener.idl
// 
// You should use these interfaces when you access the COM objects defined in the mentioned
// IDL/IDH file.
// </remarks>
// --------------------------------------------------------------------------------------------
namespace Gecko
{
	using System;
	using System.Runtime.InteropServices;
	using System.Runtime.InteropServices.ComTypes;
	using System.Runtime.CompilerServices;
	
	
	/// <summary>
    /// nsIDNSListener
    /// </summary>
	[ComImport()]
	[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	[Guid("27d49bfe-280c-49e0-bbaa-f6200c232c3d")]
	public interface nsIDNSListener
	{
		
		/// <summary>
        /// called when an asynchronous host lookup completes.
        ///
        /// @param aRequest
        /// the value returned from asyncResolve.
        /// @param aRecord
        /// the DNS record corresponding to the hostname that was resolved.
        /// this parameter is null if there was an error.
        /// @param aStatus
        /// if the lookup failed, this parameter gives the reason.
        /// </summary>
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		void OnLookupComplete([MarshalAs(UnmanagedType.Interface)] nsICancelable aRequest, [MarshalAs(UnmanagedType.Interface)] nsIDNSRecord aRecord, int aStatus);
	}
	
	/// <summary>
    /// nsIDNSListenerProxy:
    ///
    /// Must be implemented by classes that wrap the original listener passed to
    /// nsIDNSService.AsyncResolve, so we have access to original listener for
    /// comparison purposes.
    /// </summary>
	[ComImport()]
	[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	[Guid("60eff0e4-6f7c-493c-add9-1cbea59063ad")]
	public interface nsIDNSListenerProxy
	{
		
		/// <summary>
        /// The original nsIDNSListener which requested hostname resolution.
        /// </summary>
		[return: MarshalAs(UnmanagedType.Interface)]
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		nsIDNSListener GetOriginalListenerAttribute();
	}
}
